DigiOffice Gateway Web Services

<back to all web services

GetProjectDetailsTBI

Get project details

Requires Authentication
The following routes are available for this service:
GET/api/tbi/Projects/{ID}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class Veld implements IConvertible
{
    String? Name;
    String? Type;
    dynamic? Value;
    String? Description;
    String? GlobalID;

    Veld({this.Name,this.Type,this.Value,this.Description,this.GlobalID});
    Veld.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Name = json['Name'];
        Type = json['Type'];
        Value = JsonConverters.fromJson(json['Value'],'dynamic',context!);
        Description = json['Description'];
        GlobalID = json['GlobalID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Name': Name,
        'Type': Type,
        'Value': JsonConverters.toJson(Value,'dynamic',context!),
        'Description': Description,
        'GlobalID': GlobalID
    };

    getTypeName() => "Veld";
    TypeContext? context = _ctx;
}

class ProjectDetailsTBI implements IConvertible
{
    List<Veld>? Velden;

    ProjectDetailsTBI({this.Velden});
    ProjectDetailsTBI.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Velden = JsonConverters.fromJson(json['Velden'],'List<Veld>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Velden': JsonConverters.toJson(Velden,'List<Veld>',context!)
    };

    getTypeName() => "ProjectDetailsTBI";
    TypeContext? context = _ctx;
}

/**
* Get project details
*/
// @Api(Description="Get project details")
class GetProjectDetailsTBI implements IConvertible
{
    /**
    * ID or GlobalID
    */
    // @ApiMember(Description="ID or GlobalID", IsRequired=true)
    String? ID;

    GetProjectDetailsTBI({this.ID});
    GetProjectDetailsTBI.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ID': ID
    };

    getTypeName() => "GetProjectDetailsTBI";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'kpm_digiofficeapigateway.tbi.nl', types: <String, TypeInfo> {
    'Veld': TypeInfo(TypeOf.Class, create:() => Veld()),
    'ProjectDetailsTBI': TypeInfo(TypeOf.Class, create:() => ProjectDetailsTBI()),
    'List<Veld>': TypeInfo(TypeOf.Class, create:() => <Veld>[]),
    'GetProjectDetailsTBI': TypeInfo(TypeOf.Class, create:() => GetProjectDetailsTBI()),
});

Dart GetProjectDetailsTBI DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/tbi/Projects/{ID} HTTP/1.1 
Host: kpm_digiofficeapigateway.tbi.nl 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Velden: 
	[
		{
			Name: String,
			Type: String,
			Value: {},
			Description: String,
			GlobalID: 00000000-0000-0000-0000-000000000000
		}
	]
}